all : quadratics

quadratics : quadratics-frontend.o quadratics-backend.o quadratics-core.o quadratics-log.o
	gcc -o quadratics quadratics-frontend.o quadratics-backend.o quadratics-core.o quadratics-log.o -lm

quadratics.o : quadratics-frontend.c quadratics-backend.c quadratics-core.c quadratics-log.c
	gcc -c quadratics-frontend.c quadratics-backend.c quadratics-core.c quadratics-log.c -lm

t1 : t1.o quadratics-backend.o quadratics-core.o unittest.o
	gcc -o t1 t1.o quadratics-backend.o quadratics-core.o unittest.o -lm

t1.o : t1.c quadratics-backend.c quadratics-core.c unittest.c
	gcc -c t1.c quadratics-backend.c quadratics-core.c unittest.c -lm

clean : 
	rm quadratics-frontend.o quadratics-backend.o quadratics-core.o quadratics-log.o
	
